import { observable, action, computed } from 'mobx'
import imsdk from '../net/IMSDK';
// import message from 'antd/es/message';
import chatStore from './ChatStore';
import { FriendItem } from '../interface/IFriend';
import systemStore from './SystemStore';
import webIM from '../net/WebIM';
import { createGroupStore } from '../store/CreatGroupStore';
import { DeptList } from '../interface/IDept';


export class DeptStore {
  _deptList: DeptList = [];
  deptList = observable(this._deptList);

  @observable selectGroupId: string = '';


  @action setDeptList = (dept:DeptList) => {
      this.deptList.replace(dept)
  }
}

export default new DeptStore();
